CreditCard

fun CreditCard(number: CardNumber, expirationDate: YearMonth, holder: String? = null): CreditCard
fun CreditCard(number: CardNumber, expirationDate: YearMonth, holder: String? = null): CreditCard

Creates a new instance of CreditCard with the given parameters.

Since

8.0.0

Parameters

number

The card number.

expirationDate

The expiration date.

holder

The name of the cardholder.